package com.zijie;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 *
 * @author zijie
 */
@EnableScheduling
@SpringBootApplication
public class ZiJieApplication {

    public static void main(String[] args) {


        System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication application = new SpringApplication(ZiJieApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("\n(♥◠‿◠)ﾉﾞ  zijie-fast-service启动成功   ლ(´ڡ`ლ)ﾞ");
        System.out.println("=== 系统信息 ===");
        System.out.println("系统版本: " + System.getProperty("os.name") + " " + System.getProperty("os.version"));
        System.out.println("JDK版本: " + System.getProperty("java.version") + " (" + System.getProperty("java.vm.name") + ")");
        System.out.println("Spring Boot版本: " + SpringBootVersion.getVersion());
        System.out.println("Java版本: " + System.getProperty("java.version"));
        System.out.println("工作目录: " + System.getProperty("user.dir"));


    }

}
